package com.chenl.provider.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class CheckWhiteUtils {
    @Value("${my.list:1232,666}")
    private  List<String> list;

    public  Boolean check(String s){
        if (list.contains("123")){
            System.out.println(1);
            return true;
        }else {
            System.out.println(2);
            return false;
        }
    }
}
